home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / amiga-magazin-pd / 01-95-2 / tips & tricks / makedir next >
AmigaDOS Script File  |  1995-03-09  |  376b  |  24 lines

  1. .KEY DIR/A,ICONS/S,NOENV/S
  2. .BRA [
  3. .KET ]
  4.  
  5. if "[NOENV]" EQ ""
  6.    if exists ENV:MAKEDIR
  7.       set icons `getenv MAKEDIR`
  8.    else
  9.       set icons [ICONS]
  10.    endif
  11. endif
  12.  
  13. failat 21
  14. c:makedir "[DIR]"
  15. if not warn
  16.    if "$icons" eq "ICONS"
  17.       copy env:sys/def_Drawer.info "[DIR].info"
  18.    endif
  19. else
  20.    echo "Fehler beim Anlegen des Verzeichnis *"[DIR]*""
  21. endif
  22.  
  23. unset >NIL: icons
  24.